package com.example.music_impl.presenter;

import com.example.music_api.bean.AudioInfo;

import java.util.List;

import io.reactivex.Observable;
import com.example.music_impl.model.MusicApiModel;
import com.example.music_impl.view.IMusicView;

public class MusicListPresenter {
    private IMusicView musicView;
    private MusicApiModel model = new MusicApiModel();

    public MusicListPresenter(IMusicView musicView) {
        this.musicView = musicView;
    }

    public Observable<List<AudioInfo>> getMusicList() {
        return model.getAudioList();
    }
}
